
/**
 * AppleIIGo
 * Ensoniq DOC (Digital Oscillator Chip) class
 * (C) 2008 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */
 
#include "DOC.h"

DOC::DOC(Motherboard * motherboard) : Device(motherboard, "DOC") {
}

void DOC::writeAudio(UINT32 audioBufferSampleNum) {
}

void DOC::readAudio(UINT32 audioBufferSampleNum) {
}

void DOC::setControlRegister(UINT8 value) {
	controlRegister = value;
}

UINT8 DOC::getControlRegister() {
	return controlRegister;
}

void DOC::sendData(UINT8 value) {
}

UINT8 DOC::receiveData() {
	return 0;
}

void DOC::setAddressLow(UINT8 value) {
	address = (address & 0xff00) | value;
}

UINT8 DOC::getAddressLow() {
	return address;
}

void DOC::setAddressHigh(UINT8 value) {
	address = (address & 0xff) | (value << 8);
}

UINT8 DOC::getAddressHigh() {
	return address >> 8;
}
